

#ifndef _SHELL_REQBUYNUMBER_MESSAGE_H_
#define _SHELL_REQBUYNUMBER_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ReqBuyNumberMessage : public Message
{
	public:
	ReqBuyNumberMessage();
	~ReqBuyNumberMessage();
	void reset();
	ReqBuyNumberMessage* clone();
	static const int _ID;
	//购买次数类型：1.剩余挑战boss次数4.剩余团队竞技次数。5。剩余个人竞技次数6.挑战组队副本次数7.门派挑战次数8.矿点挖矿时间
	int8 type;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
